﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
using DotNet.Model;
using System.Data;
namespace DotNet.Business
{
	public class QuestionClassBll
	{
		QuestionClassDal qDal=new QuestionClassDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int QuestionClassID)
		{
			return qDal.Exists(QuestionClassID);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<QuestionClass> GetModel()
		{
			return qDal.GetModel();
		}
		#endregion

        #region 根据父id获得数据列表
        /// <summary>
        /// 根据父id获得数据列表
        /// <param name="fid">父id</param>
        /// </summary>
        public IList<QuestionClass> GetModelByFid(int fid)
        {
            return qDal.GetModelByFid(fid);
        }
        #endregion

        #region 根据标识列获得数据实体
        /// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="QuestionClassID">标识列</param>
		/// <returns></returns>
		public QuestionClass GetModel(int QuestionClassID)
		{
			return qDal.GetModel(QuestionClassID);
		}
		#endregion

		#region 修改信息
		/// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="QuestionClass">实体</param>
		/// <returns></returns>
		public bool Update(QuestionClass questionclass)
		{
			 return qDal.Update(questionclass);
		}
		#endregion

        #region ajax批量修改---郑同飞
        /// <summary>
        /// ajax批量修改---郑同飞
        /// </summary>
        /// <param name="id"></param>
        /// <param name="qClassid"></param>
        /// <returns></returns>
        public bool Update(string[] id,string qClassid) 
        {
            return qDal.Update(id, qClassid);
        }
        #endregion

        #region 删除信息
        /// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="QuestionClassID">标识列</param>
		/// <returns></returns>
		public bool Delete(int QuestionClassID)
		{
			 return qDal.Delete(QuestionClassID);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="QuestionClass">实体</param>
		/// <returns></returns>
		public bool Insert(QuestionClass questionclass)
		{
			 return qDal.Insert(questionclass);
		}
		#endregion        

    }
}
